package com.clt.web.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.clt.web.common.Message;
import com.clt.web.service.IWxMesgService;

/**
 * 发送消息实现类
 * 
 * @author hp
 * 
 */
@Service
@Transactional
public class WxMesgServiceImp implements IWxMesgService {

	/**
	 * 发送文本消息
	 */
	@Override
	public String sendTextMesg(String openId, String text) {
		String result = null;
		try {
			result = Message.sendText(openId, text);
		} catch (Exception e) {
			result = e.getMessage();
		}
		return result;
	}
}
